class CreateMerchantAddresses < ActiveRecord::Migration
  def change
    create_table :merchant_addresses do |t|
      t.references :merchant
      t.string :line1
      t.string :line2
      t.string :website
      t.string :city
      t.string :state
      t.string :country
      t.string :zip
      t.string :email
      t.string :phone
      t.string :contact_person
      t.boolean :active

      t.timestamps
    end
    add_index :merchant_addresses, :merchant_id
  end
end
